# -*- coding:utf-8 -*-


import json

A = set()
B = set()
with open('bizhong1.txt') as f:
    l = f.readlines()
    for x in l:
        A.add(x.strip())


with open('标记', encoding='utf-8') as f:
    load_dict = f.readlines()
    for x in load_dict:
        B.add(x.strip())

C = A.intersection(B)
for s in C:
    with open('币种比较.txt', 'a', encoding='utf-8') as f:
        f.write(s + '\n')


